import tkinter
master = tkinter.Tk()
x = int(input())
y = int(input())
n = int(input())
if (x+30)*n > 500:
  print("не работает")
elif (y+20)*n > 500:
  print("не работает")
elif y<0:
  print("не работает")
elif x < 0:
  print("не работает")
else:
  canvas = tkinter.Canvas(master, bg='black', height=500, width=500)
  canvas.create_polygon((x*n, y * n) , ((x+10)*n, y*n), ((x+10)*n, (y+10)*n),((x+20)*n, (y+10)*n), ((x+20)*n, y*n), ((x+30)*n, y*n) ,((x+30)*n, (y+20)*n), (x*n, (y+20)*n), (x*n, y*n), fill="blue")
  canvas.pack()
  master.mainloop()



